Skip to content

fix: copy folder path when a folder is selected - #2614

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
weiningwei:fix/copy-folder-path
Aug 10, 2026
Merged

fix: copy folder path when a folder is selected#2614
love-linger merged 1 commit into
sourcegit-scm:developfrom
weiningwei:fix/copy-folder-path

Conversation

@weiningwei

@weiningwei weiningwei commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Pressing Ctrl+C on a folder row in the unstaged/staged change tree copied the first file path under the folder, or silently did nothing when the folder contained multiple files. This PR makes the copy behavior consistent with the right-click "Copy Path" menu item.

Pressing Ctrl+C on a folder row in the unstaged/staged change tree copied
the first file path under the folder (or silently did nothing when the
folder contained multiple files). Now the Ctrl+C handler checks the real
selection in the tree container first and copies the folder path, and
multi-selection copies every path line by line. Ctrl+Shift+C keeps copying
absolute paths.
@love-linger love-linger self-assigned this Aug 10, 2026
@love-linger love-linger added the enhancement New feature or request label Aug 10, 2026
@love-linger
love-linger merged commit b09b6d1 into sourcegit-scm:develop Aug 10, 2026
14 checks passed
@weiningwei
weiningwei deleted the fix/copy-folder-path branch August 10, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants